package com.fanqiechaodan.mediator;

/**
 * @author fanqiechaodan
 * @Classname Colleague
 * @Description 抽象同事类
 */
public abstract class Colleague {

    protected Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    /**
     * 发送消息
     *
     * @param message
     */
    public abstract void send(String message);

    /**
     * 消费消息
     * @param message
     */
    public abstract void receive(String message);
}
